import uvicorn, os
from application import create_app
from fastapi import FastAPI

app: FastAPI = create_app()


if __name__ == '__main__':
    print(os.getcwd())
    uvicorn.run(
        'main:app',
        host=os.environ.get('APP_HOST'),
        port=int(os.environ.get('APP_PORT')),
        reload=bool(os.environ.get('APP_DEBUG'))
    )